home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0105
/
vb.zip
/
LGPOINT.FRM
< prev
next >
Wrap
Text File
|
1996-01-10
|
34KB
|
1,053 lines
VERSION 2.00
Begin Form PointerDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Pointer Properties Demonstration"
ClientHeight = 6450
ClientLeft = 1155
ClientTop = 1830
ClientWidth = 7755
Height = 6810
Left = 1095
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 430
ScaleMode = 3 'Pixel
ScaleWidth = 517
Top = 1530
Width = 7875
Begin CheckBox Check2
BackColor = &H00C0C0C0&
Caption = "PointerMouseControl"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Left = 210
TabIndex = 66
Top = 5280
Width = 2745
End
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "Pointer Type"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1455
Left = 5940
TabIndex = 26
Top = 30
Width = 1605
Begin OptionButton Option3
BackColor = &H00C0C0C0&
Caption = "Range"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 1
Left = 180
TabIndex = 27
Top = 720
Width = 1305
End
Begin OptionButton Option3
BackColor = &H00C0C0C0&
Caption = "Value"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 180
TabIndex = 28
Top = 480
Width = 1305
End
End
Begin LGAUGE LGauge1
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00C0C0C0&
BandID = 0
Bands = 0
BevelInner = 1 ' 1 - Raised
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderWidth = 2
CaptionID = 0
Captions = 0
FontID = 0
Height = 5085
Left = 120
Orientation = 1 ' 1 - Vertical
PointerID = 0
Pointers = 3
ScaleID = 0
Scales = 1
TabIndex = 29
TicID = 0
Tics = 2
Top = 120
Width = 2805
ZLoad = LGPOINT.FRX:0000
End
Begin Frame Frame6
BackColor = &H00C0C0C0&
Caption = "Pointer Size/Position Properties"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1965
Left = 3150
TabIndex = 59
Top = 1500
Width = 4425
Begin HScrollBar HScroll1
Height = 240
Index = 2
Left = 1470
Max = 250
TabIndex = 65
Top = 1065
Width = 2250
End
Begin HScrollBar HScroll1
Height = 240
Index = 3
Left = 1470
Max = 250
TabIndex = 64
Top = 1320
Width = 2250
End
Begin HScrollBar HScroll1
Height = 240
Index = 4
Left = 1470
Max = 250
TabIndex = 63
Top = 1575
Width = 2250
End
Begin HScrollBar HScroll1
Height = 240
Index = 8
Left = 1470
Max = 100
TabIndex = 60
Top = 810
Width = 2250
End
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 1470
Max = 100
TabIndex = 4
Top = 300
Width = 2250
End
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 1470
Max = 100
TabIndex = 6
Top = 555
Width = 2250
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Value:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 2
Left = 420
TabIndex = 24
Top = 1065
Width = 1005
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 2
Left = 3750
TabIndex = 25
Top = 1065
Width = 300
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 3
Left = 3750
TabIndex = 30
Top = 1320
Width = 300
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Start:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 3
Left = 495
TabIndex = 31
Top = 1320
Width = 930
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 4
Left = 3750
TabIndex = 32
Top = 1575
Width = 300
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Stop:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 8
Left = 510
TabIndex = 57
Top = 1575
Width = 915
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 8
Left = 3750
TabIndex = 62
Top = 810
Width = 300
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Width:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 4
Left = 435
TabIndex = 61
Top = 810
Width = 990
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 0
Left = 3750
TabIndex = 7
Top = 330
Width = 300
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Inner:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 0
Left = 495
TabIndex = 20
Top = 315
Width = 945
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Outer:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 1
Left = 435
TabIndex = 21
Top = 570
Width = 990
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 1
Left = 3750
TabIndex = 23
Top = 570
Width = 300
End
End
Begin Frame Frame5
BackColor = &H00C0C0C0&
Caption = "Pointer Digital Properties"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1560
Left = 3150
TabIndex = 36
Top = 3510
Width = 4425
Begin HScrollBar HScroll1
Height = 240
Index = 7
Left = 1920
Max = 5
TabIndex = 54
Top = 1155
Width = 1995
End
Begin HScrollBar HScroll1
Height = 240
Index = 6
Left = 1920
Max = 100
TabIndex = 49
Top = 900
Width = 1995
End
Begin HScrollBar HScroll1
Height = 240
Index = 5
Left = 1920
Max = 100
TabIndex = 48
Top = 645
Width = 1995
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "PointerDigital"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Left = 120
TabIndex = 37
Top = 300
Value = 1 'Checked
Width = 1710
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Digital Decimals:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 7
Left = 195
TabIndex = 56
Top = 1185
Width = 1695
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 240
Index = 7
Left = 3945
TabIndex = 55
Top = 1155
Width = 330
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 6
Left = 3945
TabIndex = 53
Top = 915
Width = 330
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 5
Left = 3945
TabIndex = 52
Top = 645
Width = 330
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Digital Y:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 6
Left = 705
TabIndex = 51
Top = 930
Width = 1170
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Digital X:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 5
Left = 735
TabIndex = 50
Top = 675
Width = 1155
End
Begin Label Colors
BackColor = &H00000000&
Height = 225
Index = 19
Left = 1905
TabIndex = 47
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H00808080&
Height = 225
Index = 18
Left = 3105
TabIndex = 46
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 225
Index = 17
Left = 2145
TabIndex = 45
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H000000FF&
Height = 225
Index = 16
Left = 3345
TabIndex = 44
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 225
Index = 15
Left = 2385
TabIndex = 43
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 225
Index = 14
Left = 3585
TabIndex = 42
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 225
Index = 13
Left = 2625
TabIndex = 41
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 225
Index = 12
Left = 3825
TabIndex = 40
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H000080FF&
Height = 225
Index = 11
Left = 2865
TabIndex = 39
Top = 270
Width = 225
End
Begin Label Colors
BackColor = &H00004040&
Height = 225
Index = 10
Left = 4065
TabIndex = 38
Top = 270
Width = 225
End
End
Begin TextBox Text1
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 885
Left = 3150
MultiLine = -1 'True
TabIndex = 33
Top = 5400
Width = 4425
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Pointer Color"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 675
Left = 180
TabIndex = 22
Top = 5580
Width = 2775
Begin Label Colors
BackColor = &H000080FF&
Height = 225
Index = 8
Left = 1260
TabIndex = 5
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 225
Index = 7
Left = 2220
TabIndex = 9
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 225
Index = 6
Left = 1020
TabIndex = 10
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 225
Index = 5
Left = 1980
TabIndex = 11
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 225
Index = 4
Left = 780
TabIndex = 12
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H000000FF&
Height = 225
Index = 3
Left = 1740
TabIndex = 13
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 225
Index = 2
Left = 540
TabIndex = 14
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H00808080&
Height = 225
Index = 1
Left = 1500
TabIndex = 15
Top = 300
Width = 225
End
Begin Label Colors
BackColor = &H00000000&
Height = 225
Index = 0
Left = 300
TabIndex = 16
Top = 300
Width = 225
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Pointer Style"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1455
Left = 4410
TabIndex = 17
Top = 30
Width = 1485
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "User Defined"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Index = 4
Left = 150
TabIndex = 58
Top = 1110
Width = 1245
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Pointer"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Index = 3
Left = 150
TabIndex = 34
Top = 900
Width = 1005
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Triangle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Index = 2
Left = 150
TabIndex = 8
Top = 690
Width = 1005
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Ellipse"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Index = 1
Left = 150
TabIndex = 19
Top = 480
Width = 1095
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Rectangle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Index = 0
Left = 150
TabIndex = 18
Top = 270
Width = 1125
End
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Pointer ID"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1455
Left = 3150
TabIndex = 0
Top = 30
Width = 1230
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "2"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Index = 2
Left = 330
TabIndex = 3
Top = 900
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "1"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Index = 1
Left = 330
TabIndex = 2
Top = 660
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "0"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Index = 0
Left = 330
TabIndex = 1
Top = 420
Value = -1 'True
Width = 615
End
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Pointer Shape: (x,y pair list)"
Height = 195
Index = 12
Left = 3180
TabIndex = 35
Top = 5160
Width = 2370
End
End
Sub Check1_Click ()
lgauge1.PointerDigital = check1
End Sub
Sub Check2_Click ()
lgauge1.PointerMouseControl = -check2
End Sub
Sub Colors_Click (Index As Integer)
If Index < 10 Then
lgauge1.PointerColor = Colors(Index).BackColor
Else
lgauge1.PointerDigitalColor = Colors(Index).BackColor
End If
End Sub
Sub Form_Load ()
'set the scroll bars up correctly
lgauge1.PointerID = 0
hscroll1(0) = lgauge1.PointerInner * 100
hscroll1(1) = lgauge1.PointerOuter * 100
hscroll1(2) = lgauge1.PointerValue
hscroll1(3) = lgauge1.PointerStart
hscroll1(4) = lgauge1.PointerStop
hscroll1(5) = lgauge1.PointerDigitalX * 100
hscroll1(6) = lgauge1.PointerDigitalY * 100
hscroll1(7) = lgauge1.PointerDigitalDecimals
hscroll1(8) = lgauge1.PointerWidth * 100
option2(lgauge1.PointerStyle) = True
option3(lgauge1.PointerType) = True
check1 = -lgauge1.PointerDigital
check2 = -lgauge1.PointerMouseControl
End Sub
Sub HScroll1_Change (Index As Integer)
Select Case Index
Case 0
lgauge1.PointerInner = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
lgauge1.PointerOuter = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
lgauge1.PointerValue = hscroll1(2)
label2(2) = hscroll1(2)
Case 3
lgauge1.PointerStart = hscroll1(3)
label2(3) = hscroll1(3)
Case 4
lgauge1.PointerStop = hscroll1(4)
label2(4) = hscroll1(4)
Case 5
lgauge1.PointerDigitalX = hscroll1(5) / 100
label2(5) = hscroll1(5) / 100
Case 6
lgauge1.PointerDigitalY = hscroll1(6) / 100
label2(6) = hscroll1(6) / 100
Case 7
lgauge1.PointerDigitalDecimals = hscroll1(7)
label2(7) = hscroll1(7)
Case 8
lgauge1.PointerWidth = hscroll1(8) / 100
label2(8) = hscroll1(8) / 100
End Select
End Sub
Sub HScroll1_Scroll (Index As Integer)
Select Case Index
Case 0
lgauge1.PointerInner = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
lgauge1.PointerOuter = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
lgauge1.PointerValue = hscroll1(2)
label2(2) = hscroll1(2)
Case 3
lgauge1.PointerStart = hscroll1(3)
label2(3) = hscroll1(3)
Case 4
lgauge1.PointerStop = hscroll1(4)
label2(4) = hscroll1(4)
Case 5
lgauge1.PointerDigitalX = hscroll1(5) / 100
label2(5) = hscroll1(5) / 100
Case 6
lgauge1.PointerDigitalY = hscroll1(6) / 100
label2(6) = hscroll1(6) / 100
Case 7
lgauge1.PointerDigitalDecimals = hscroll1(7)
label2(7) = hscroll1(7)
Case 8
lgauge1.PointerWidth = hscroll1(8) / 100
label2(8) = hscroll1(8) / 100
End Select
End Sub
Sub lgauge1_Change ()
If Not option1(lgauge1.PointerID) Then option1(lgauge1.PointerID) = True
hscroll1(2) = lgauge1.PointerValue
hscroll1(3) = lgauge1.PointerStart
hscroll1(4) = lgauge1.PointerStop
End Sub
Sub LGauge1_Click ()
option1(lgauge1.PointerID) = True
End Sub
Sub LGauge1_Slide ()
If Not option1(lgauge1.PointerID) Then option1(lgauge1.PointerID) = True
hscroll1(2) = lgauge1.PointerValue
hscroll1(3) = lgauge1.PointerStart
hscroll1(4) = lgauge1.PointerStop
End Sub
Sub LGauge1_Turn ()
hscroll1(2) = lgauge1.PointerValue
End Sub
Sub Option1_Click (Index As Integer)
lgauge1.PointerID = Index
hscroll1(0) = lgauge1.PointerInner * 100
hscroll1(1) = lgauge1.PointerOuter * 100
hscroll1(2) = lgauge1.PointerValue
hscroll1(3) = lgauge1.PointerStart
hscroll1(4) = lgauge1.PointerStop
hscroll1(5) = lgauge1.PointerDigitalX * 100
hscroll1(6) = lgauge1.PointerDigitalY * 100
hscroll1(7) = lgauge1.PointerDigitalDecimals
hscroll1(8) = lgauge1.PointerWidth * 100
option2(lgauge1.PointerStyle) = True
option3(lgauge1.PointerType) = True
Text1 = lgauge1.PointerShape
check1 = -lgauge1.PointerDigital
check2 = -lgauge1.PointerMouseControl
End Sub
Sub Option2_Click (Index As Integer)
lgauge1.PointerStyle = Index
End Sub
Sub Option3_Click (Index As Integer)
lgauge1.PointerType = Index
End Sub
Sub Text1_KeyPress (KeyAscii As Integer)
lgauge1.PointerShape = Text1
End Sub